from fastapi import FastAPI
from agno.models.openai import OpenAILike

from src.settings import settings

def startup_agno(app: FastAPI) -> None:
    app.state.agno_llm = OpenAILike(
        base_url=settings.llm_base_url,
        api_key=settings.llm_api_key,
        id=settings.llm_model_name
    )
    

def shutdown_agno(app: FastAPI) -> None:
    app.state.agno_llm = None
    
